<div class="modal-header">
	<h4 class="modal-title">复制{{dict.name}}样式</h4>
</div>
<div class="modal-body container-fluid form-horizontal">
	<form name="form" novalidate>
		<div class="form-group">
			<label class="col-xs-2 control-label">复制源：</label>
			<div class="col-xs-8 mt7">
				{{curInstance.name}}-->{{(style.text||style.name)+"_"+style.code}}
			</div>
		</div>
		<div class="form-group">
			<label class="col-xs-2 control-label required">复制到：</label>
			<div class="col-xs-4">
				<tree-selector  node-list="filteredSceneTree" need=true leaf-only=true host="item" host-key="'sceneId'" host-text="'sceneName'"  tip-text="'场景选择'"></tree-selector>
			</div>
			<div class="col-xs-4">
				<input type="text" ng-model="temp.instance" placeholder="--样式名称--"
					   uib-typeahead="o as o.name for o in findInstance(1,$viewValue)"
					   class="form-control" required
					   typeahead-show-hint="true" typeahead-min-length="0">
			</div>
		</div>
		<div class="form-group" >
			<label class="col-xs-2 control-label required">样式分类：</label>
			<div class="col-xs-8">
				<input type="text" ng-model="temp.style" placeholder="--样式分类--"
					   uib-typeahead="o as (o.text||o.name)+'_'+o.code for o in dict.rowStyles | filter:{name:$viewValue}"
					   class="form-control"  required
					   typeahead-show-hint="true" typeahead-min-length="0">
			</div>
		</div>
	</form>
</div>
<div class="modal-footer">
	<button class="btn btn-primary" ng-click="save(form,item)">确定</button>
	<button class="btn btn-warning" ng-click="$dismiss()">取消</button>
</div>
